<div class="wrap">
<h2>
<?php
define(ADMINISTRATOR, "1");
define(CLASS_MASTER, "3");
define(REFEREE, "9");
echo _e('Sport Print');

?>
</h2>
<p>
<?php
$form = new zeus_quickform(
    array("name" => "sv-form",
        "id" => "sv-form",
        "action" => "javascript:void(null);",
        "onsubmit" => "xajax_jsSubmitForm();",
        "method" => "post"));

echo $form->start();

?>
</p>
<table class="form-table">
<tr class="form-field">
<th scope="row">
<label for="myclass_id"><?php echo _e('<strong>STEP 1:</strong>  Chose the print table.');

?></label>
</th>
<td>
<?php
$role_id = getTheUserRoleId($_SESSION['user_id']);
$firstentry = _e('Please Select Table...');
switch ($role_id) {
    case ADMINISTRATOR:
    case REFEREE:
        $options = array(1=>_e("Sports Apply Table"),
		2=>_e("Track Group Table"),
		3=>_e("Field Group Table"),
		4=>_e("Score Record Card")
		);
        break;
    case CLASS_MASTER:
        $options = array();
        break;
    default:
        $options = array();
        break;
}
// krsort($options);
$options[0] = $firstentry;
$table = array("property" => array("name" => "table_id"),
    "options" => $options,
    "current" => $_POST['table_id']);
echo $form->addSelect($table['property'], $table['options'], $table['current']);

?>
<tf class="submit">
<?php
echo $form->addElement("submit", array("name" => "step1", "id" => "step2", "value" => _e("Submit")));

?>
</tf>
</td>
</tr>
</table>
<div id = "ajax-response"></div>
<p>
<?php
echo $form->end();

?>
</p>
</div>
</div><!-- wpbody -->
</div><!-- wpcontent -->
</div><!-- wpwrap -->